// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");


//class PrimeNumbers
//{
    //static void Main()
    //{
        int count = 0;
        Console.WriteLine("101 - 200 之间的素数：");

        for (int i = 101; i <= 200; i++)
        {
            bool isPrime = true;
            for (int j = 2; j <= Math.Sqrt(i); j++)
            {
                if (i % j == 0)
                {
                    isPrime = false;
                    break;
                }
            }
            if (isPrime)
            {
                Console.Write(i + " ");
                count++;
            }
        }

        Console.WriteLine($"\n101 - 200 之间共有 {count} 个素数");
    //}
//}